<style lang="less">
    .back{
        position:fixed;
        top:20px;
        left:15px;
        z-index:100;
        button{
            background-color:transparent;

        }
    }
</style>
<template>
    <div class="back">
        <button @click="jumpTo">
            <van-icon name="revoke" />
        </button>
    </div>
</template>

<script>
    export default{
        props:{
            url:{
                type:String,
                default:'/index'
            }
        },
        methods:{
            jumpTo(){
                this.$router.push({path:this.url})
            }
        }
    }
</script>